package main

import (
	"fmt"
)

func findDisappearedNumbers(nums []int) []int {
	arr := [100000]int{}
	for i := 0; i < len(nums); i++ {
		if arr[nums[i]] == 0 {
			arr[nums[i]] = 1
		} else {
			arr[nums[i]]++
		}
	}
	res := []int{}
	for i := 1; i <= len(nums); i++ {
		if arr[i] == 0 {
			res = append(res, i)
		}
	}
	return res
}
func main() {
	nums := []int{1, 1}
	fmt.Println(findDisappearedNumbers(nums))

}
